#!/bin/sh
#
# Call sniffaccess, thereby removing the CatDir . if necessary
#
# DoSniffAccess.sh <sniffaccess_command> <sniffaccess_project> <CatDir> <FileName>
#

test $# != 4 && echo "DoSniffAccess Error: Need 4 parameters, have only $#!" && exit 1
case $3 in
   .) sniffaccess -q $1 $2 $4
	;;
   *) sniffaccess -q $1 $2 $3/$4
	;;
esac
